﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using AIO.Entity.Base;

namespace AIO.Entity
{
    /// <summary>
    /// 账户信息
    /// </summary>
    [Table("BC01")]
    public class Account:BaseEntity
    {
        /// <summary>
        /// 账号
        /// </summary>
        [Required]
        [StringLength(50)]
        [Column("BC01")]
        public string? AccountName { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        [Required]
        [StringLength(50)]
        [Column("BC02")]
        public string? AccountPassword { get; set; }

        public int MyProperty { get; set; }

        //[Required]
        //[Column("BC03")]
        //[DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}"
        //    , ApplyFormatInEditMode = true)]
        //public DateTime? LoginTime { get; set; }

        //[Required]
        //[Column("BC04")]
        //[DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}"
        //    , ApplyFormatInEditMode = true)]
        //public DateTime? LastLoginTime { get; set; }

        //public IPAddress Login { get; set; }


    }
}
